﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ZhimeiSoft.CharmManager.DOL
{
    public class DBEntityServiceItemDetail : DBEntityBase
    {
        public override string GetTableName()
        {
            return "SERVICEITEMDETAIL";
        }

        public DBEntityServiceItemDetail()
            : base()
        {
        }

        public DBEntityServiceItemDetail(DataRow drRow)
        {
            this.SERVICEITEMDETAILID = Convert.ToInt32(drRow[DBEntityServiceItemDetail.FieldName.SERVICEITEMDETAILID]);
            this.SERVICEITEMID = Convert.ToInt32(drRow[DBEntityServiceItemDetail.FieldName.SERVICEITEMID]);
            this.SEQNUM = Convert.ToInt32(drRow[DBEntityServiceItemDetail.FieldName.SEQNUM]);
            this.SDAYS = Convert.ToInt32(drRow[DBEntityServiceItemDetail.FieldName.SDAYS]);
            this.SMEMO = drRow[DBEntityServiceItemDetail.FieldName.SMEMO].ToString();
        }
        /// <summary>
        /// 服务项目明细ID
        /// </summary>
        public int SERVICEITEMDETAILID {get; set;}
        /// <summary>
        /// 服务项目ID
        /// </summary>
	    public int SERVICEITEMID {get; set;}
        /// <summary>
        /// 序号
        /// </summary>
	    public int SEQNUM {get; set;}
        /// <summary>
        /// 间隔天数
        /// </summary>
	    public int SDAYS {get; set;}
        /// <summary>
        /// 备注
        /// </summary>
        public string SMEMO { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 服务项目明细ID
            /// </summary>
            public const string SERVICEITEMDETAILID = "SERVICEITEMDETAILID";
            /// <summary>
            /// 服务项目ID
            /// </summary>
            public const string SERVICEITEMID = "SERVICEITEMID";
            /// <summary>
            /// 序号
            /// </summary>
            public const string SEQNUM = "SEQNUM";
            /// <summary>
            /// 间隔天数
            /// </summary>
            public const string SDAYS = "SDAYS";
            /// <summary>
            /// 备注
            /// </summary>
            public const string SMEMO = "SMEMO";
        }
    }
}
